package Data;

import java.io.Serializable;
import java.util.ArrayList;

public class GroupData implements Serializable {
    private static final long serialVersionUID = 5442710183388828792L;
    private String group_id;
    private String group_name;
    private String creater_id;
    private String group_saying;
    private byte[] group_avatar;

    private String suffix_name;

    private String id;
    private int identity;

    public String getSuffix_name() {
        return suffix_name;
    }

    public void setSuffix_name(String suffix_name) {
        this.suffix_name = suffix_name;
    }

    private ArrayList<GroupFriendData> group_friend_list=new ArrayList<>();

    private MassageListData massageListData=new MassageListData();

    public GroupData() {
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    public String getCreater_id() {
        return creater_id;
    }

    public void setCreater_id(String creater_id) {
        this.creater_id = creater_id;
    }

    public String getGroup_saying() {
        return group_saying;
    }

    public void setGroup_saying(String group_saying) {
        this.group_saying = group_saying;
    }

    public byte[] getGroup_avatar() {
        return group_avatar;
    }

    public void setGroup_avatar(byte[] group_avatar) {
        this.group_avatar = group_avatar;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public ArrayList<GroupFriendData> getGroup_friend_list() {
        return group_friend_list;
    }

    public void setGroup_friend_list(ArrayList<GroupFriendData> group_friend_list) {
        this.group_friend_list = group_friend_list;
    }

    public MassageListData getMassageListData() {
        return massageListData;
    }

    public void setMassageListData(MassageListData massageListData) {
        this.massageListData = massageListData;
    }

//    @Override
//    public boolean equals(Object o)
//    {
//        if(this==o)
//        {
//            return true;
//        }
//        if(o==null||getClass()!=o.getClass())
//        {
//            return false;
//        }
//        GroupData groupData=(GroupData) o;
//        return group_id==groupData.group_id;
//    }
//
//    @Override
//    public int hashCode()
//    {
//        return Objects.hashCode(group_id);
//    }
}
